package com.platform.web.mapper;


import com.platform.web.model.Role;

import java.util.List;
import java.util.Map;

/**
 * 角色Mapper类
 * 
 * @author LiangMingHui
 *
 */
public interface RoleMapper {

	int deleteByPrimaryKey(String id);

	int deleteBatchRoleByIds(List<String> ids);

	int deleteBatchRolePermissionByIds(List<String> ids);

	int insert(Role record);

	int insertSelective(Role record);

	int updateByPrimaryKeySelective(Role record);

	int updateByPrimaryKey(Role record);

	int getRoleCount(Role role);

	int getPermissionRoleCount(List<String> ids);

	Role selectByPrimaryKey(String id);

	Role selectByRoleCode(String roleCode);

	List<Role> selectRoleByPage(Map<String, Object> map);

	List<Role> selectAllRoleList();
}